<?php 
    include("sendquery_db.php");
    $db = dbservice::getInstance();
    $text;
    $id;
    if(isset($_GET["text"])){
        $text = $_GET["text"];    
    }
    if(isset($_GET["id"])){
        $id = $_GET["id"];
    }
    $queryString = "insert into comment_lab (uid, content) values ('$id','$text')";
    $result = $db->sendquery($queryString);
    header( 'Location: ../page/cse326_lab.php' );
?>